<tr class="<%= cycle("total", "even") %>">
	<th>
		<% if use_name == true %>
			<%= user.display_name %>
		<% else %>
			&nbsp;
		<% end %>
	</td>
	<!-- :start_lt is :start less than. ie. 'start is less than time.now' -->
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s1 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s2 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s3 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s4 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s5 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s6 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s7 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s8 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s9 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :s10 => true, :start_lt => Time.now }) %></td>
	<td><%= user.pdsessions.sum(:duration, :conditions => { :start_lt => Time.now }) %> hrs</td>
</tr>